/**
 * 
 */
package it.codin.progettoX;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

import weka.attributeSelection.CorrelationAttributeEval;
import weka.core.Instances;
import weka.core.converters.ConverterUtils.DataSource;
import java.util.Enumeration;

/**
 * @author gnocco
 *
 */
public class Main {
	private static final String CLASS = "Main";
	private static final Property prop = new Property();
	private static final Logger log = new Logger(prop);
	
	/**
	 * Metodo main del progetto.
	 * 
	 * @param args Argomenti.
	 */
	public static void main(String[] args) {
		String METHOD = "main";
		Logger.log(Logger.MESSAGE, CLASS, METHOD, "Comincio il programma!");
		File dataset = new File(prop.get("name_dataset"));
		try{

			
			/*
			FileReader fr = new FileReader(dataset);
			BufferedReader br = new BufferedReader(fr);
			
			DataSource source = new DataSource(prop.get("name_dataset"));
			Instances in = source.getDataSet();

			Logger.log(Logger.MESSAGE, CLASS, METHOD, "il dataset ha "+in.size()+" istanze!");
			
			br.close();
			fr.close();
			*/
			Logger.log(Logger.MESSAGE, CLASS, METHOD, "File \""+prop.get("name_dataset")+"\" aperto e chiuso!");
		} catch (Exception ex){
			Logger.log(ex, CLASS, METHOD, "");
		}
	}

}
